package com.wbp.cms.client.customer.service;

import java.io.Serializable;
import java.util.List;

import com.wbp.cms.client.customer.domain.CustomerDO;
import com.wbp.cms.client.customer.query.CustomerQuery;
import com.wbp.cms.client.result.Result;


/**
 * @Description:
 * @Department:
 * @author andy.lhc
 * @date 2016年3月6日 下午10:23:57
 */
public interface CustomerService extends Serializable {

  public Long addCustomer(CustomerDO customerDO);

  public boolean modifyCustomer(CustomerDO customerDO);


  public CustomerDO queryCustomerById(Long customerId);
  
  public CustomerDO queryCustomerByUserName(String userName);

  /**
   * 查询 根据用户二维码推荐的用户
   * 
   * @param customerQuery
   * @return
   */
  public Result<List<CustomerDO>> queryUsers(CustomerQuery customerQuery);


}
